import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ant-design:cloud-server-outlined',
      keepAlive: true,
      order: 2,
      title: '模型湖服务',
    },
    name: 'ModelLake',
    path: '/model-lake',
    children: [
      {
        meta: {
          title: '渠道管理',
          icon: 'ant-design:gateway-outlined',
        },
        name: 'channels',
        path: '/model-lake/channels',
        component: () => import('#/views/model-lake/channels/index.vue'),
      },
      {
        meta: {
          title: '模型管理',
          icon: 'ant-design:robot-outlined',
        },
        name: 'models',
        path: '/model-lake/models',
        component: () => import('#/views/model-lake/models/index.vue'),
      },
      {
        meta: {
          title: '账户管理',
          icon: 'ant-design:wallet-outlined',
        },
        name: 'account',
        path: '/model-lake/account',
        component: () => import('#/views/model-lake/account/index.vue'),
      },
      {
        meta: {
          title: '请求记录',
          icon: 'ant-design:history-outlined',
        },
        name: 'request-records',
        path: '/model-lake/request-records',
        component: () => import('#/views/model-lake/request-records/index.vue'),
      },
    ],
  },
];

export default routes;
